#include <stdio.h>
#include <string.h>

int main()
{
	printf("输入一串不超过50位的字符串\n");
	
	char ovo[50];
	int cot_u=0,cot_U=0;
	int cot_p=0,cot_P=0;
	int cot_r=0,cot_R=0;
	int cot_e=0,cot_E=0;
	int cot_UPRE=0;
	int i;
	
	scanf("%s",ovo);
	
	for(i=0;i<strlen(ovo);i++){
		
		if(ovo[i]=='u'){
			cot_u++;
		}
		if(ovo[i]=='U'){
			cot_U++;
		}
		if(ovo[i]=='p'){
			cot_p++;
		}
		if(ovo[i]=='P'){
			cot_P++;
		}
		if(ovo[i]=='r'){
			cot_r++;
		}
		if(ovo[i]=='R'){
			cot_R++;
		}
		if(ovo[i]=='e'){
			cot_e++;
		}
		if(ovo[i]=='E'){
			cot_E++;
		}
		
		if(i<=strlen(ovo)-4
			&&ovo[i] == 'U'
			&&ovo[i+1]=='P'
			&&ovo[i+2]=='R'
			&&ovo[i+3]=='E'){
			cot_UPRE++;
		}
		}
	printf("U:小写%d个，大写%d个\nP:小写%d个，大写%d个\nR:小写%d个，大写%d个\nE:小写%d个，大写%d个\nUPRE:%d个",
		cot_u,cot_U,cot_p,cot_P,cot_r,cot_R,cot_e,cot_E,cot_UPRE);
}
